package com.tdkj.model.bbs;

import java.sql.Timestamp;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * EjfTrashBox entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ejf_trash_box", catalog = "west")
public class EjfTrashBox implements java.io.Serializable {

	// Fields

	private EjfTrashBoxId id;
	private Integer boardId;
	private String boardName;
	private String topicTitle;
	private String userId;
	private String deleteUser;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public EjfTrashBox() {
	}

	/** minimal constructor */
	public EjfTrashBox(EjfTrashBoxId id, Integer boardId, String boardName, String topicTitle, String userId, String deleteUser) {
		this.id = id;
		this.boardId = boardId;
		this.boardName = boardName;
		this.topicTitle = topicTitle;
		this.userId = userId;
		this.deleteUser = deleteUser;
	}

	/** full constructor */
	public EjfTrashBox(EjfTrashBoxId id, Integer boardId, String boardName, String topicTitle, String userId, String deleteUser, Timestamp createTime) {
		this.id = id;
		this.boardId = boardId;
		this.boardName = boardName;
		this.topicTitle = topicTitle;
		this.userId = userId;
		this.deleteUser = deleteUser;
		this.createTime = createTime;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( { @AttributeOverride(name = "topicId", column = @Column(name = "topicID", nullable = false)), @AttributeOverride(name = "replyId", column = @Column(name = "replyID", nullable = false)) })
	public EjfTrashBoxId getId() {
		return this.id;
	}

	public void setId(EjfTrashBoxId id) {
		this.id = id;
	}

	@Column(name = "boardID", nullable = false)
	public Integer getBoardId() {
		return this.boardId;
	}

	public void setBoardId(Integer boardId) {
		this.boardId = boardId;
	}

	@Column(name = "boardName", nullable = false, length = 20)
	public String getBoardName() {
		return this.boardName;
	}

	public void setBoardName(String boardName) {
		this.boardName = boardName;
	}

	@Column(name = "topicTitle", nullable = false, length = 100)
	public String getTopicTitle() {
		return this.topicTitle;
	}

	public void setTopicTitle(String topicTitle) {
		this.topicTitle = topicTitle;
	}

	@Column(name = "userID", nullable = false, length = 15)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "deleteUser", nullable = false, length = 15)
	public String getDeleteUser() {
		return this.deleteUser;
	}

	public void setDeleteUser(String deleteUser) {
		this.deleteUser = deleteUser;
	}

	@Column(name = "createTime", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}